package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;
import com.itheima.health.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {

    Set<Role> findRolesByUserId(Integer userId);

    void add(Role role);

    Page<Role> findPage(String queryString);

    Integer findCheckGroupAndCheckItemCountByCheckItemId(Integer id);

    void deleteById(Integer id);

    void edit22(Role role);

    List<Role> findAll();

    Role findById(Integer id);


    void addRoleAndMenu(Map<String, Object> map);

    void addRoleAndPermission(Map<String, Object> map);

    void deleteRoleAndPermission(Integer id);

    void deleteRoleAndMenu(Integer id);
}
